﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="RoleMenuMapping.aspx.cs"
    Inherits="PreContractWeb.Administration.RoleMenuMapping" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>预合同管理系统</title>
    <link href="../css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table border="0" cellpadding="0" cellspacing="0" style="width: 500px;" align="center">
                <tr>
                    <td style="padding-left: 20px;" class="TitleBlue" height="40px" align="center">
                        角色权限管理</td>
                </tr>
                <tr>
                    <td>
                        <table border="1" cellpadding="0" cellspacing="0" bordercolor="#8ea5bc" bordercolordark="#ffffff"
                            style="width: 100%" class="BorderTable">
                            <tr>
                                <td style="width: 50%;">
                                    <asp:TreeView ID="menuTree" runat="server" Width="100%" Height="100%" ShowLines="True"
                                        AutoPostBack="false">
                                    </asp:TreeView>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" bordercolordark="#ffffff" width="500px"
                align="center">
                <tr align="right">
                    <td height="60" align="right" valign="middle" class="copy-title" style="text-align: center">
                        <asp:Button ID="btnsave" runat="server" Text=" Save " OnClick="btnsave_Click" />&nbsp;&nbsp;
                    </td>
                </tr>
            </table>

            <script type="text/javascript" language="javascript">
        function CheckAll()
        {
            var o = event.srcElement;
            if (o.type == "checkbox")
            {
                var c = o.checked;
                var divID = o.id.replace(/CheckBox/g, "Nodes");
                if (document.getElementById(divID) != null)
                {
                    var cbs = document.getElementById(divID).all.tags("input");
                    for (var i = 0; i < cbs.length; i++)
                    {
                        if (cbs[i].type == "checkbox")
                        {
                            cbs[i].checked = c;
                        }
                    }
                }
            }
        }
        document.attachEvent("onclick", CheckAll);
            </script>

        </div>
    </form>
</body>
</html>
